package io.gitee.zhangbinhub.admin.mapper;

import io.gitee.zhangbinhub.admin.entity.Role;
import io.gitee.zhangbinhub.admin.vo.RoleVo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface RoleMapper {
    RoleMapper INSTANCE = Mappers.getMapper(RoleMapper.class);

    RoleVo entityToVo(Role role);
}
